<?php
/*\
 *	oh.codes.includes.php
 *	---------------------
 *
 *
 *
\*/

function oh_code_test($title,$description,$code) {
	echo oh_box_open("frame");
		echo oh_box_open("title");
			echo $title;
		echo oh_box_close();			
		
		echo oh_box_open("comment");
			echo $description;
		echo oh_box_close();			

		echo '<br>Code:';	
		oh_code_print($code);

		echo '<br>Result:';	
		echo oh_box_open("result");
			eval($code);
		echo oh_box_close();			

	echo oh_box_close();
}

function oh_code_print($code) {
	echo oh_box_open("code");
		highlight_string('<?php '."\n".$code."\n".'?>');
	echo oh_box_close();
}
